﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>
    <script>
        //函数是可以互相调用的
        function skill1() {
            console.log('控制敌人');
            return '被击晕的吕布';
        }
        function skill2() {
            let hero = skill1();
            console.log('击杀' + hero);
        }
        skill2();
    </script>
</body>
</html>